import http from "../utils/http"
// 新增
export const saveAdd=(address)=>{
    return http.post("/userAddress/save",address)
}
// 获取全部
export const reqAddressData = () => {
  return http.get(`/userAddress/findUserAddress`);
}
// 删除
export const removeAddress=(id)=>{
  return http.get(`/userAddress/delete/${id}`)  
}
// 获取详情
export const addressDetail=(id)=>{
  return http.get(`/userAddress/${id}`)   
}
// 更新详情
export const updateAddress=(data)=>{
  return http.post(`/userAddress/update`,data)
}
